package cn.weiyang.testArray;

public class Matrix {
	public static void add(int[][] a,int[][] b){
		  int[][] c=new int[a.length][a.length];
		 for(int i=0;i<a.length;i++){
				for(int j=0;j<a.length;j++){
					c[i][j]=a[i][j]+b[i][j];
					System.out.print(c[i][j]+"\t");
				}
				System.out.println();
			}
		}

	public static void main(String[] args){
		int[][] a={{1,2,3},
		           {3,4,5},	
		           {3,4,5}
	              };
		int[][] b={{3,4,5},
				   {3,4,5},
				   {3,4,5}
		};
		add(a,b);
	}
}
